home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat2
/
standard
/
signal.z
/
signal
Wrap
Text File
|
1998-10-20
|
5KB
|
133 lines
SSSSIIIIGGGGNNNNAAAALLLL((((2222)))) SSSSIIIIGGGGNNNNAAAALLLL((((2222))))
NNNNAAAAMMMMEEEE
signal - software signal facilities (System V)
CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<ssssiiiiggggnnnnaaaallll....hhhh>>>>
_CCCC_::::
vvvvooooiiiidddd ((((****ssssiiiiggggnnnnaaaallll ((((iiiinnnntttt ssssiiiigggg,,,, vvvvooooiiiidddd ((((****ffffuuuunnnncccc))))(((())))))))))))(((())));;;;
_CCCC_++++_++++_::::
vvvvooooiiiidddd ((((****ssssiiiiggggnnnnaaaallll ((((iiiinnnntttt ssssiiiigggg,,,, vvvvooooiiiidddd ((((****ffffuuuunnnncccc))))((((iiiinnnntttt))))))))))))((((iiiinnnntttt))));;;;
_####_iiii_ffff ______XXXX_OOOO_PPPP_EEEE_NNNN______SSSS_OOOO_UUUU_RRRR_CCCC_EEEE
vvvvooooiiiidddd ((((****ssssiiiiggggnnnnaaaallll ((((iiiinnnntttt ssssiiiigggg,,,, vvvvooooiiiidddd ((((****ffffuuuunnnncccc))))((((iiiinnnntttt))))))))))))((((iiiinnnntttt))));;;;
_####_eeee_nnnn_dddd_iiii_ffff
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_ssss_iiii_gggg_nnnn_aaaa_llll allows the calling process to choose one of three ways in which it
is possible to handle the receipt of a specific signal. _s_i_g specifies
the signal and _f_u_n_c specifies the choice.
For a list of valid signals and a general description of the signal
mechanism please see _ssss_iiii_gggg_nnnn_aaaa_llll(5).
[EINVAL] _ssss_iiii_gggg_nnnn_aaaa_llll will fail if _s_i_g is an illegal signal number, including
SSSSIIIIGGGGKKKKIIIILLLLLLLL and SSSSIIIIGGGGSSSSTTTTOOOOPPPP.
[EINVAL] _ssss_iiii_gggg_nnnn_aaaa_llll will fail if an illegal operation is requested (for
example, ignoring SSSSIIIIGGGGCCCCOOOONNNNTTTT, which is ignored by default).
SSSSEEEEEEEE AAAALLLLSSSSOOOO
kill(1), intro(2), blockproc(2), kill(2), pause(2), ptrace(2),
sigaction(2), sigset(2), wait(2), setjmp(3C), sigvec(3B),
pthread_kill(3P), signal(5)
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
Upon successful completion, _ssss_iiii_gggg_nnnn_aaaa_llll returns the previous value of _f_u_n_c for
the specified signal _s_i_g. Otherwise, a value of _SSSS_IIII_GGGG______EEEE_RRRR_RRRR is returned and
_e_r_r_n_o is set to indicate the error. _SSSS_IIII_GGGG______EEEE_RRRR_RRRR is defined in the header
file <_s_y_s/_s_i_g_n_a_l._h>.
WWWWAAAARRRRNNNNIIIINNNNGGGGSSSS
Signals raised by the instruction stream, SSSSIIIIGGGGIIIILLLLLLLL, SSSSIIIIGGGGEEEEMMMMTTTT, SSSSIIIIGGGGBBBBUUUUSSSS, SSSSIIIIGGGGSSSSEEEEGGGGVVVV
will cause infinite loops if their handler returns, or the action is set
to SSSSIIIIGGGG____IIIIGGGGNNNN....
The POSIX signal routines (_s_i_g_a_c_t_i_o_n(2), _s_i_g_p_e_n_d_i_n_g(2), _s_i_g_p_r_o_c_m_a_s_k(2),
_s_i_g_s_u_s_p_e_n_d(2), _s_i_g_s_e_t_j_m_p(3)), and the 4.3BSD signal routines (_s_i_g_v_e_c(3B),
_s_i_g_n_a_l(3B), _s_i_g_b_l_o_c_k(3B), _s_i_g_p_a_u_s_e(3B), _s_i_g_s_e_t_m_a_s_k(3B)) must NEVER be
used with _s_i_g_n_a_l(2) or _s_i_g_s_e_t(2).
PPPPaaaaggggeeee 1111
SSSSIIIIGGGGNNNNAAAALLLL((((2222)))) SSSSIIIIGGGGNNNNAAAALLLL((((2222))))
Before entering the signal-catching function, the value of _f_u_n_c for the
caught signal will be set to SSSSIIIIGGGG____DDDDFFFFLLLL unless the signal is SSSSIIIIGGGGIIIILLLLLLLL,
SSSSIIIIGGGGTTTTRRRRAAAAPPPP, or SSSSIIIIGGGGPPPPWWWWRRRR. This means that before exiting the handler, a _ssss_iiii_gggg_nnnn_aaaa_llll
call is necessary to again set the disposition to catch the signal.
Note that handlers installed by _ssss_iiii_gggg_nnnn_aaaa_llll execute with _n_o signals blocked,
not even the one that invoked the handler.
PPPPaaaaggggeeee 2222